package ar.uade.fain.ai.tpo.dao;

import java.sql.ResultSet;
import java.sql.SQLException;

public interface RowMapper<T> { 
	
	public static RowMapper<Long> ID_MAPPER = new RowMapper<Long>() {
		@Override
		public Long map(ResultSet rs) throws SQLException {
			return rs.getLong("id");
		}
	};
	
	public abstract T map(ResultSet rs) throws SQLException;
	
}
